﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _1_11 : System.Web.UI.Page
{
    Button button = new Button();
    TextBox TextBox = new TextBox();
    protected void Page_Load(object sender, EventArgs e)
    {
        button.Text = "点一下我啊";
        button.Click += Button_Click;
        Panel1.Visible = true;
        Panel1.Controls.Add(button);
        Panel1.Controls.Add(TextBox);
    }

    private void Button_Click(object sender, EventArgs e)
    {
        Response.Write(TextBox.Text);
    }


}